package com.eva.learn.concurrent.util;

import java.util.concurrent.locks.Lock;

public class TestRun implements Runnable {

	Lock lock;

	public TestRun(Lock lock) {
		this.lock = lock;
		System.out.println(this.getClass().getName());
	}

	@Override
	public void run() {
		lock.lock();
		System.out.println(lock.toString());
	}

}
